﻿using Pay.Core;
using Pay.DTO;
using Pay.TO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pay.IService
{
    public interface IPlayingTeamService
    {
        /// <summary>
        /// 获得队伍列表
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        PagedResult<playing_team_dto> GetPlayingTeams(PlayingTeamQuery query);

        /// <summary>
        /// 获得队伍
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        playing_team_dto GetPlayingTeam(long id);

        /// <summary>
        /// 新增队伍
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        int AddPlayingTeam(playing_team_dto dto);

        /// <summary>
        /// 更新队伍
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        int UpdatePlayingTeam(playing_team_dto dto);

        /// <summary>
        /// 获得所有队伍的下拉选择数据
        /// </summary>
        /// <returns></returns>
        List<DropdownItem> GetTeamDropdownItems();
    }
}
